/*
 * Copyright (c)  2015~2020, xforceplus
 * All rights reserved.
 * Project:datacare-orm
 * Id: OrmQuery.java   2020-10-10 22-04-48
 * Author: Evan
 */
package cn.datacare.orm.mapping.orm;

import cn.datacare.orm.annotation.Builder;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: 2015~2020
 * </p>
 * <p>
 * Company/Department: xforceplus
 * </p>
 *
 * @author Evan
 * <b>Creation Time:</b> 2020-10-10 22-04-48
 * @since V1.0
 */
@Target({TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Builder(value = OrmObjectBuilder.class)
public @interface OrmQuery {
    OrmCondition[] value();


    enum Type {
        //One
        ONE,
        //Many
        MANY;
    }
}
